<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MarkItUp.Master" 
Inherits="System.Web.Mvc.ViewPage<Wikey.Entity.User>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Main" runat="server">
    <%= Html.ActionLink("Edit Details" , "Edit" , "Account") %>
    <h2><%= ViewData.Model.Name %></h2>
    <p>
      <%= ViewData.Model.Bio %>
    </p>
    <img src='<%=Html.ResolveUrl(String.Format("~/Uploads/Users/{0}" , ViewData.Model.Picture)) %>' />
    
     <% if( ViewData.Model != null ){ foreach (var page in ViewData.Model.Pages) {%>
            <%= Html.ActionLink(page.Name, page.FriendlyName, "Pages")%>
         <% }} %>
    
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
</asp:Content>
